<?php /*
Template Name: Archiv
*/ ?>

<?php get_header(); ?>

<div id="page">

<h1 class="title-post">
	<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h1>

<div id="pa">

<?php if(simpax_archive_toc()) : ?>
<div class="pa_toc">
<h3 id="toc"><?php _e('Inhalt','simpax');?></h3>
<?php if(simpax_archive_timeline()) { ?>
<p><a href="#timeline"><?php _e('Zeitlieste','simpax');?></a></p>
<?php } if(simpax_archive_links()) { ?>
<p><a href="#links"><?php _e('Links','simpax');?></a></p>
<?php } if(simpax_archive_posts()) { ?>
<p><a href="#archive"><?php _e('Archiv','simpax');?></a> (alle Beitr&auml;ge)</p>
<?php } if(simpax_archive_cats()) { ?>
<p><a href="#cats"><?php _e('Kategorien','simpax');?></a></p>
<?php } if(simpax_archive_months()) { ?>
<p><a href="#month"><?php _e('Monate','simpax');?></a></p>
<?php } ?>
</div>
<?php endif; ?>

<?php if(simpax_archive_timeline()) { ?>
<h3 id="timeline"><?php _e('Zeitleiste','simpax');?> <a href="#">^</a></h3>
<div id="stl-timeline" style="border:1px solid #AAAAAA;height:800px;width:100%;">
</div>

<?php } if(simpax_archive_links()) { ?>
<h3 id="links"><?php _e('Links','simpax');?> <a href="#">^</a></h3>
<?php wp_get_links(); ?>

<?php } if(simpax_archive_posts()) { ?>
<h3 id="archive"><?php _e('Archiv','simpax');?> <a href="#">^</a></h3>
<?php cax_clean_archives(); ?>

<?php } if(simpax_archive_cats()) { ?>
<h3 id="cats"><?php _e('Kategorien','simpax');?> <a href="#">^</a></h3>
<ul class="listcats">
<?php wp_list_cats('sort_column=name&optioncount=1&hide_empty=1&children=1'); ?>
</ul>

<?php } if(simpax_archive_months()) { ?>
<h3 id="months"><?php _e('Monate','simpax');?> <a href="#">^</a></h3>
<?php wp_get_archives('type=monthly'); ?>

<?php } ?>

</div>

</div>

<?php get_footer(); ?>